package com.example.administrator.demob;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;

public class MiddlePriorityReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        Bundle bundle = getResultExtras(false);
        String address = bundle.getString("ADDRESS");
        int number = bundle.getInt("NUMBER");
        Log.e("MiddlePriorityReceiver", "onReceive  address = "+ address +
                "   number = "+number);

        bundle.putInt("PRICE",108);
        bundle.putString("BOOK","Android移动开发");
        setResultExtras(bundle);
    }
}
